package stdying.handyweibo.model;

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.annotations.SerializedName;

/**
 * Description: Geo 地理信息
 * Author: liulili
 * Created: 2015-12-24
 */
public class Geo implements Parcelable {

    private String longitude;
    private String latitude;
    private String city;
    private String province;

    @SerializedName("city_name")
    private String cityName;

    @SerializedName("province_name")
    private String provinceName;

    private String address;
    private String pinyin;
    private String more;

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getLatitude() {
        return latitude;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public String getLongitude() {
        return longitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public String getMore() {
        return more;
    }

    public void setMore(String more) {
        this.more = more;
    }

    public String getPinyin() {
        return pinyin;
    }

    public void setPinyin(String pinyin) {
        this.pinyin = pinyin;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getProvinceName() {
        return provinceName;
    }

    public void setProvinceName(String provinceName) {
        this.provinceName = provinceName;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.longitude);
        dest.writeString(this.latitude);
        dest.writeString(this.city);
        dest.writeString(this.province);
        dest.writeString(this.cityName);
        dest.writeString(this.provinceName);
        dest.writeString(this.address);
        dest.writeString(this.pinyin);
        dest.writeString(this.more);
    }

    public Geo() {
    }

    protected Geo(Parcel in) {
        this.longitude = in.readString();
        this.latitude = in.readString();
        this.city = in.readString();
        this.province = in.readString();
        this.cityName = in.readString();
        this.provinceName = in.readString();
        this.address = in.readString();
        this.pinyin = in.readString();
        this.more = in.readString();
    }

    public static final Parcelable.Creator<Geo> CREATOR = new Parcelable.Creator<Geo>() {
        public Geo createFromParcel(Parcel source) {
            return new Geo(source);
        }

        public Geo[] newArray(int size) {
            return new Geo[size];
        }
    };
}
